package com.cloudlead.plugin.security.service;

import com.cloudlead.common.lang.service.CrudService;

import com.cloudlead.plugin.security.vo.ScResource;

import com.cloudlead.common.lang.annotation.Label;
import com.cloudlead.plugin.security.vo.dict.PrivilegeCategory;

import java.util.List;

/**
 * ScResourceService is a Codegen service interface type
 */
@Label("资源服务")
public interface ScResourceService extends CrudService<ScResource> {

    /**
     * 查询用户能访问的资源
     *
     *
     * @param username
     * @param resourceCategory
     * @param privilegeCategories
     * @return
     */
    List<ScResource> findResources(String username, Integer resourceCategory, List<PrivilegeCategory> privilegeCategories);
}

